package com.supertange.miniapp.wepet.modules.wepet.controller;

import com.supertange.miniapp.wepet.common.controller.BaseController;
import com.supertange.miniapp.wepet.common.vo.AjaxResult;
import com.supertange.miniapp.wepet.modules.wepet.service.BgmService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/bgm")
public class BgmController extends BaseController {
    @Autowired
    private BgmService bgmService;

    @ApiOperation(value="获取背景音乐列表", notes="获取背景音乐列表的接口")
    @PostMapping("/list")
    public AjaxResult list() {
        return AjaxResult.ok(bgmService.queryBgmList());
    }
}
